class InviteUsers < ActionMailer::Base
  def invite(recipient, user, event, sent_at = Time.now)
      subject  		 'CalEndar:  Meeting time setup for '  + '"' + event.name + '"'
      recipients  	 recipient
      from  		 'CalEndar169@gmail.com'
      sent_on 		 sent_at
	  body 			 :event => event, :user => user
		
      headers 		 {}
   end
   
  def link(recipient, user, event, sent_at = Time.now)
	    subject  		 'CalEndar: User Link for '  + '"' + event.name + '"'
		recipients  	 recipient
		from  		 	'CalEndar169@gmail.com'
		sent_on 		 sent_at
		body 			 :event => event, :user => user
		
		headers 		 {}

  end
  
  def admin(recipient, user, responded, not_responded, sent_at = Time.now)
		subject  		 'CalEndar: '  + user.name + " added their free time " 
		recipients  	 recipient
		from  		 	'CalEndar169@gmail.com'
		sent_on 		 sent_at
		body 			 :user => user, :responded => responded, :not_responded => not_responded
		
		headers 		 {}
  end
  
  def comment(recipient, name, comment, sent_at = Time.now)
		subject  		 'User comment from ' + name 
		recipients  	 recipient
		from  		 	'CalEndar169@gmail.com'
		sent_on 		 sent_at
		body 			 :name => name, :comment => comment
		
		headers 		 {}
  
  end

end
